package com.tema2.Lab4.Ex3;


public class Dice {
	private Integer diceNumber1;
	private Integer diceNumber2;
	/**
	 * Metodo encargado de generar dos numeros aleatorios ("tira el dado") que son los valores que toman los dados
	 * 
	 */
	public void throwDice() {
		do {
			diceNumber1 = (int) (Math.random() * 6) + 1;
			diceNumber2 = (int) (Math.random() * 6) + 1;
			System.out.println(diceNumber1);
			System.out.println(diceNumber2);
		} while (diceNumber1.equals(diceNumber2));

	}
}
